<%-- 
    Document   : frequenciaForm
    Created on : 28/08/2011, 11:21:46
    Author     : Graciano
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../../WEB-INF/imports.jspf" %>
<h1>Frequencia</h1>
<div>
    <mtw:form action="FrequenciaShowForm.mtw" method="post">
        <div>
            <table>
                <tr>
                    <td>Aula</td>
                    <td><mtw:select name="aulaId" list="aulaOptions" emptyField="true" emptyFieldValue="Selecione..." defEmptyFieldValue="0"/></td>
                    <td><mtw:submit value="Selecionar"/></td>
                </tr>
            </table>
        </mtw:form>
    </div>
    <div>
        <mtw:form action="FrequenciaCreate.mtw" method="post">
            <c:forEach var="aux" items="${frequencia}">
                <p>
                    <input type="hidden" id="aulaId" name="aulaId" value="${aux.aulaId}"/>
                    <input type="checkbox" checked="true" name="presenca" value="${aux.matricula}"/>
                    ${aux.aluno}
                </p>
            </c:forEach>
            <mtw:submit id="confirmar"/>
        </mtw:form>
    </div>
</div>


